package com.tbit.uqbike.client.util;

import java.util.HashSet;

/**
 * 插入null值时忽略，不抛出异常
 *
 * @author <a href="mailto:zheng.zebiao@tbit.com.cn">zb</a>
 * @since 2024/9/14
 */
public class NonnullSet<T> extends HashSet<T> {
    @Override
    public boolean add(T t) {
        return t != null && super.add(t);
    }
}
